package cn.lg.soar.generator.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@ApiModel(value = "ColumnInfo", description = "列信息")
@Getter
@Setter
public class ColumnInfo {

    @ApiModelProperty(value = "列名", required = true)
    private String name;

    @ApiModelProperty("属性名")
    private String propertyName;

    @ApiModelProperty(value = "列类型", required = true)
    private String type;

    @ApiModelProperty(value = "列说明")
    private String comment;

    @ApiModelProperty(value = "类型参数")
    private List<String> args;

    @ApiModelProperty(value = "可为空")
    private boolean nullable;

    @ApiModelProperty(value = "主键")
    private boolean pk;

}
